# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=apostrophe
pkgver=2.6.3
pkgrel=0
pkgdesc="distraction free Markdown editor for GNU/Linux made with GTK+"
url="https://gitlab.gnome.org/World/apostrophe"
arch="x86_64" # py3-pypandoc
license="GPL-3.0-or-later"
depends="py3-regex py3-setuptools py3-levenshtein py3-enchant py3-gobject3
	py3-cairo py3-pypandoc webkit2gtk gtk+3.0 libhandy1 py3-chardet gspell"
makedepends="meson gtk+3.0-dev gobject-introspection-dev gspell-dev gettext-dev
	libhandy1-dev sassc"
checkdepends="appstream-glib desktop-file-utils"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/World/apostrophe/-/archive/v$pkgver/apostrophe-v$pkgver.tar.gz
	dont-require-py-gettext.patch
	"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
1820fd609efe4ac0b7babdeb2aa552a72dd9623f4caeb8eb9e638a52a546b76fda5119931d10b630234a595d227ff7090a63503fd9da94d553439b91a03ac876  apostrophe-v2.6.3.tar.gz
a46505e246af5d6ebf99d8585eb5f99046a71f0c54328f0c07caef046dd0f9e403ba0be89703621f1644fd5d4be7f74fdf7308356f38afe7f21c5c57eaf08a57  dont-require-py-gettext.patch
"
